package com.shop.cereshop.admin.param.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "ConfigSaveParam", description = "新增参数配置")
public class ConfigSaveParam {

    @ApiModelProperty(value = "参数名称", required = true)
    @NotBlank(message = "参数名称不能为空")
    private String configName;

    @ApiModelProperty(value = "参数键名", required = true)
    @NotBlank(message = "参数键名不能为空")
    private String configKey;

    @ApiModelProperty(value = "参数键值", required = true)
    @NotBlank(message = "参数键值不能为空")
    private String configValue;

    @ApiModelProperty(value = "参数端 1-后台，2-代理商端，3-用户端，4-商家端", required = true)
    @NotBlank(message = "参数端不能为空")
    private String configType;

    @ApiModelProperty("备注")
    private String remark;
}


